import Vue from 'vue'
import App from './App.vue'
import router from './router'

// 导入ElementUI
import ElementUI from 'element-ui'
import '../node_modules/element-ui/lib/theme-chalk/index.css'
import './style/index.less'

// 引入axios
import axios from 'axios'

// 设置请求基地址
axios.defaults.baseURL = 'http://ttapi.research.itcast.cn/mp/v1_0/'
// axios挂载Vue实例上
Vue.prototype.$axios = axios

Vue.use(ElementUI)
Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
